package com.gzhryc.shared_device.common.payment.dao.enums;

public class ProjectWalletEnum {
	
	public enum Type {

	    ServerWallet(1, "服务费钱包"),FlowIncomeWallet(2, "流水收益钱包");

	    private Integer index;
	    private String note;

	    Type(Integer index, String note) {
	        this.index = index;
	        this.note = note;
	    }

	    public Integer index() {
	        return index;
	    }

	    public String note() {
	        return note;
	    }
	    
	    public static String note(Integer index) {
	    	Type[] temp = Type.values();
            for (int i = 0; i < temp.length; i++) {
            	Type item = temp[i];
                if (item.index.equals(index)) {
                    return item.note;
                }
            }
            return null;
        } 
	}

}
